//导入request.js请求工具
import request from '@/utils/request.js'

// ==================== 教师信息查询接口（学生端使用） ====================

// 获取所有教师列表
export const getAllTeachersService = () => {
  return request({
    url: '/teacher/all',
    method: 'GET'
  })
}

// 搜索教师
export const searchTeachersService = (keyword) => {
  return request({
    url: '/teacher/search',
    method: 'GET',
    params: {
      keyword: keyword
    }
  })
}

// 获取教师详细信息
export const getTeacherDetailService = (teacherId) => {
  return request({
    url: `/teacher/detail/${teacherId}`,
    method: 'GET'
  })
}

// 根据学院筛选教师
export const getTeachersByCollegeService = (college) => {
  return request({
    url: '/teacher/by-college',
    method: 'GET',
    params: {
      college: college
    }
  })
}

// 根据专业职称筛选教师
export const getTeachersByTitleService = (title) => {
  return request({
    url: '/teacher/by-title',
    method: 'GET',
    params: {
      title: title
    }
  })
}

// 获取指定教师的完整信息（包含基本信息、获奖、参赛、项目等）
export const getTeacherCompleteInfoService = (employeeId) => {
  return request({
    url: `/teacher/getCompleteInfo`,
    method: 'GET',
    params: {
      employeeId: employeeId
    }
  })
}
